<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-financialManagement-edit" th:object="${partApplication}">
			<input id="partId" name="partId" th:field="*{partId}"  type="hidden">
			<div class="form-group">
				<div class="col-sm-8">
					<textarea id="refuseReason" name="refuseReason" placeholder="请输入拒绝原因" maxlength="500" rows="5" class="form-control"></textarea>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "business/inventoryRecord";
		function submitHandler() {
			$.ajax({
				type: "post",
				url: prefix + "/outBoundAuditRefuse",
				data: {
					"partId":$("#partId").val(),
					"auditStatus":"2",
					"refuseReason":$("#refuseReason").val()
				},
				success: function(r) {
					if (r.code === web_status.SUCCESS) {
						$.modal.msgReload("审核拒绝！");
					}
				}
			});
		}
	</script>
</body>
</html>
